#pragma once 

#include <iostream>
#include "Protocol.hpp"
class Task{
  private:
    int sock_;
    CallBack handler;//设置回调
  public:
    Task()
      {}
    Task(int sock):sock_(sock)
      {}
    void ProcessOn(){//处理任务
      handler(sock_);
    }
    ~Task()
      {}
};

